package org.osoftware.mumi.dao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * The Class Address.
 */
@Entity
@Table(name="address")
public class Address extends BaseObject{

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -8780730868698400456L;
	
	/** The street. */
	@Column(name="street")
	private String street;
	
	/** The number. */
	@Column(name="number")
	private Integer number;
	
	/** The floor. */
	@Column(name="floor")
	private Integer floor;
	
	/** The department. */
	@Column(name="department")
	private String department;
	
	/** The city. */
	@ManyToOne
	private City city;
	
	
	/**
	 * Gets the street.
	 *
	 * @return the street
	 */
	public String getStreet() {
		return street;
	}
	
	/**
	 * Sets the street.
	 *
	 * @param street the new street
	 */
	public void setStreet(String street) {
		this.street = street;
	}
	
	/**
	 * Gets the number.
	 *
	 * @return the number
	 */
	public Integer getNumber() {
		return number;
	}
	
	/**
	 * Sets the number.
	 *
	 * @param number the new number
	 */
	public void setNumber(Integer number) {
		this.number = number;
	}
	
	/**
	 * Gets the floor.
	 *
	 * @return the floor
	 */
	public Integer getFloor() {
		return floor;
	}
	
	/**
	 * Sets the floor.
	 *
	 * @param floor the new floor
	 */
	public void setFloor(Integer floor) {
		this.floor = floor;
	}
	
	/**
	 * Gets the department.
	 *
	 * @return the department
	 */
	public String getDepartment() {
		return department;
	}
	
	/**
	 * Sets the department.
	 *
	 * @param department the new department
	 */
	public void setDepartment(String department) {
		this.department = department;
	}
	
	/**
	 * Gets the city.
	 *
	 * @return the city
	 */
	public City getCity() {
		return city;
	}
	
	/**
	 * Sets the city.
	 *
	 * @param city the new city
	 */
	public void setCity(City city) {
		this.city = city;
	}

	/* (non-Javadoc)
	 * @see org.osoftware.mumi.dao.model.BaseObject#toString()
	 */
	@Override
	public String toString() {
		return "Address [street=" + street + ", number=" + number + ", floor="
				+ floor + ", department=" + department + ", city=" + city
				+ ", toString()=" + super.toString() + "]";
	}
}
